﻿// Decompiled with JetBrains decompiler
// Type: 我的小工具.cn.net.mysoft.erp.UpdatePackWebService
// Assembly: 开发辅助工具, Version=1.0.0.1, Culture=neutral, PublicKeyToken=null
// MVID: F78E5980-5E94-4E46-ABDF-DC8C6CBF52AA
// Assembly location: K:\Tools\工具\开发辅助工具庆六一版\开发辅助工具2015-06-01\开发辅助工具.exe

using System;
using System.CodeDom.Compiler;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Threading;
using System.Web.Services;
using System.Web.Services.Description;
using System.Web.Services.Protocols;
using 我的小工具.Properties;

namespace 我的小工具.cn.net.mysoft.erp
{
  [DesignerCategory("code")]
  [WebServiceBinding(Name = "UpdatePackWebServiceSoap", Namespace = "http://www.mysoft.com.cn/erp3/updatepack")]
  [GeneratedCode("System.Web.Services", "4.0.30319.17929")]
  [DebuggerStepThrough]
  public class UpdatePackWebService : SoapHttpClientProtocol
  {
    private AuthHeader authHeaderValueField;
    private SendOrPostCallback ExcuteSqlOperationCompleted;
    private SendOrPostCallback GetOnlineUsersOperationCompleted;
    private SendOrPostCallback GetRunningStateOperationCompleted;
    private SendOrPostCallback SetRunningStateOperationCompleted;
    private SendOrPostCallback SetMaintenanceStateOperationCompleted;
    private SendOrPostCallback GetServerTimeOperationCompleted;
    private SendOrPostCallback CheckWorkStatusOperationCompleted;
    private SendOrPostCallback AddAreaOperationCompleted;
    private SendOrPostCallback AddChildAreaOperationCompleted;
    private SendOrPostCallback UpdateAreaOperationCompleted;
    private SendOrPostCallback DelAreaOperationCompleted;
    private SendOrPostCallback GetAreaListOperationCompleted;
    private SendOrPostCallback GetAreaByFiterOperationCompleted;
    private SendOrPostCallback AddCustomerOperationCompleted;
    private SendOrPostCallback UpdateCustomerOperationCompleted;
    private SendOrPostCallback DelCustomerOperationCompleted;
    private SendOrPostCallback GetCustomerListOperationCompleted;
    private SendOrPostCallback AddWorkSpaceOperationCompleted;
    private SendOrPostCallback UpdateMergerOperationCompleted;
    private SendOrPostCallback UpdateWorkSpaceOperationCompleted;
    private SendOrPostCallback DelWorkSpaceOperationCompleted;
    private SendOrPostCallback GetWorkSpaceListOperationCompleted;
    private SendOrPostCallback GetWorkSpaceByVSSPathOperationCompleted;
    private SendOrPostCallback GetWorkSpaceByFilterOperationCompleted;
    private SendOrPostCallback GetWorkSpaceOperationCompleted;
    private SendOrPostCallback SetCurrentWorkSpaceOperationCompleted;
    private SendOrPostCallback GetDevelopAreaListOperationCompleted;
    private SendOrPostCallback GetTasksListOperationCompleted;
    private SendOrPostCallback GetAttmentListOperationCompleted;
    private SendOrPostCallback GetTaskGUIDOperationCompleted;
    private SendOrPostCallback AddPackToTaskOperationCompleted;
    private SendOrPostCallback AddUpdatePackOperationCompleted;
    private SendOrPostCallback UpdatePackageInfoOperationCompleted;
    private SendOrPostCallback GetPackXqInfoXMLOperationCompleted;
    private SendOrPostCallback GetUnUpdateUpdatePackListOperationCompleted;
    private SendOrPostCallback GetUpdatePackPreVersionOperationCompleted;
    private SendOrPostCallback GetUpdatePackPreVersionByXqGUIDOperationCompleted;
    private bool useDefaultCredentialsSetExplicitly;

    public AuthHeader AuthHeaderValue
    {
      get
      {
        return this.authHeaderValueField;
      }
      set
      {
        this.authHeaderValueField = value;
      }
    }

    public new string Url
    {
      get
      {
        return base.Url;
      }
      set
      {
        if (this.IsLocalFileSystemWebService(base.Url) && !this.useDefaultCredentialsSetExplicitly && !this.IsLocalFileSystemWebService(value))
          base.UseDefaultCredentials = false;
        base.Url = value;
      }
    }

    public new bool UseDefaultCredentials
    {
      get
      {
        return base.UseDefaultCredentials;
      }
      set
      {
        base.UseDefaultCredentials = value;
        this.useDefaultCredentialsSetExplicitly = true;
      }
    }

    public event ExcuteSqlCompletedEventHandler ExcuteSqlCompleted;

    public event GetOnlineUsersCompletedEventHandler GetOnlineUsersCompleted;

    public event GetRunningStateCompletedEventHandler GetRunningStateCompleted;

    public event SetRunningStateCompletedEventHandler SetRunningStateCompleted;

    public event SetMaintenanceStateCompletedEventHandler SetMaintenanceStateCompleted;

    public event GetServerTimeCompletedEventHandler GetServerTimeCompleted;

    public event CheckWorkStatusCompletedEventHandler CheckWorkStatusCompleted;

    public event AddAreaCompletedEventHandler AddAreaCompleted;

    public event AddChildAreaCompletedEventHandler AddChildAreaCompleted;

    public event UpdateAreaCompletedEventHandler UpdateAreaCompleted;

    public event DelAreaCompletedEventHandler DelAreaCompleted;

    public event GetAreaListCompletedEventHandler GetAreaListCompleted;

    public event GetAreaByFiterCompletedEventHandler GetAreaByFiterCompleted;

    public event AddCustomerCompletedEventHandler AddCustomerCompleted;

    public event UpdateCustomerCompletedEventHandler UpdateCustomerCompleted;

    public event DelCustomerCompletedEventHandler DelCustomerCompleted;

    public event GetCustomerListCompletedEventHandler GetCustomerListCompleted;

    public event AddWorkSpaceCompletedEventHandler AddWorkSpaceCompleted;

    public event UpdateMergerCompletedEventHandler UpdateMergerCompleted;

    public event UpdateWorkSpaceCompletedEventHandler UpdateWorkSpaceCompleted;

    public event DelWorkSpaceCompletedEventHandler DelWorkSpaceCompleted;

    public event GetWorkSpaceListCompletedEventHandler GetWorkSpaceListCompleted;

    public event GetWorkSpaceByVSSPathCompletedEventHandler GetWorkSpaceByVSSPathCompleted;

    public event GetWorkSpaceByFilterCompletedEventHandler GetWorkSpaceByFilterCompleted;

    public event GetWorkSpaceCompletedEventHandler GetWorkSpaceCompleted;

    public event SetCurrentWorkSpaceCompletedEventHandler SetCurrentWorkSpaceCompleted;

    public event GetDevelopAreaListCompletedEventHandler GetDevelopAreaListCompleted;

    public event GetTasksListCompletedEventHandler GetTasksListCompleted;

    public event GetAttmentListCompletedEventHandler GetAttmentListCompleted;

    public event GetTaskGUIDCompletedEventHandler GetTaskGUIDCompleted;

    public event AddPackToTaskCompletedEventHandler AddPackToTaskCompleted;

    public event AddUpdatePackCompletedEventHandler AddUpdatePackCompleted;

    public event UpdatePackageInfoCompletedEventHandler UpdatePackageInfoCompleted;

    public event GetPackXqInfoXMLCompletedEventHandler GetPackXqInfoXMLCompleted;

    public event GetUnUpdateUpdatePackListCompletedEventHandler GetUnUpdateUpdatePackListCompleted;

    public event GetUpdatePackPreVersionCompletedEventHandler GetUpdatePackPreVersionCompleted;

    public event GetUpdatePackPreVersionByXqGUIDCompletedEventHandler GetUpdatePackPreVersionByXqGUIDCompleted;

    public UpdatePackWebService()
    {
      this.Url = Settings.Default.我的小工具_cn_net_mysoft_erp_UpdatePackWebService;
      if (this.IsLocalFileSystemWebService(this.Url))
      {
        this.UseDefaultCredentials = true;
        this.useDefaultCredentialsSetExplicitly = false;
      }
      else
        this.useDefaultCredentialsSetExplicitly = true;
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/ExcuteSql", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public string ExcuteSql(string[] sqlScripts)
    {
      return (string) this.Invoke("ExcuteSql", new object[1]
      {
        (object) sqlScripts
      })[0];
    }

    public void ExcuteSqlAsync(string[] sqlScripts)
    {
      this.ExcuteSqlAsync(sqlScripts, (object) null);
    }

    public void ExcuteSqlAsync(string[] sqlScripts, object userState)
    {
      if (this.ExcuteSqlOperationCompleted == null)
        this.ExcuteSqlOperationCompleted = new SendOrPostCallback(this.OnExcuteSqlOperationCompleted);
      this.InvokeAsync("ExcuteSql", new object[1]
      {
        (object) sqlScripts
      }, this.ExcuteSqlOperationCompleted, userState);
    }

    private void OnExcuteSqlOperationCompleted(object arg)
    {
      if (this.ExcuteSqlCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.ExcuteSqlCompleted((object) this, new ExcuteSqlCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetOnlineUsers", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public DataSet GetOnlineUsers()
    {
      return (DataSet) this.Invoke("GetOnlineUsers", new object[0])[0];
    }

    public void GetOnlineUsersAsync()
    {
      this.GetOnlineUsersAsync((object) null);
    }

    public void GetOnlineUsersAsync(object userState)
    {
      if (this.GetOnlineUsersOperationCompleted == null)
        this.GetOnlineUsersOperationCompleted = new SendOrPostCallback(this.OnGetOnlineUsersOperationCompleted);
      this.InvokeAsync("GetOnlineUsers", new object[0], this.GetOnlineUsersOperationCompleted, userState);
    }

    private void OnGetOnlineUsersOperationCompleted(object arg)
    {
      if (this.GetOnlineUsersCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetOnlineUsersCompleted((object) this, new GetOnlineUsersCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetRunningState", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string GetRunningState()
    {
      return (string) this.Invoke("GetRunningState", new object[0])[0];
    }

    public void GetRunningStateAsync()
    {
      this.GetRunningStateAsync((object) null);
    }

    public void GetRunningStateAsync(object userState)
    {
      if (this.GetRunningStateOperationCompleted == null)
        this.GetRunningStateOperationCompleted = new SendOrPostCallback(this.OnGetRunningStateOperationCompleted);
      this.InvokeAsync("GetRunningState", new object[0], this.GetRunningStateOperationCompleted, userState);
    }

    private void OnGetRunningStateOperationCompleted(object arg)
    {
      if (this.GetRunningStateCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetRunningStateCompleted((object) this, new GetRunningStateCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/SetRunningState", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public string SetRunningState()
    {
      return (string) this.Invoke("SetRunningState", new object[0])[0];
    }

    public void SetRunningStateAsync()
    {
      this.SetRunningStateAsync((object) null);
    }

    public void SetRunningStateAsync(object userState)
    {
      if (this.SetRunningStateOperationCompleted == null)
        this.SetRunningStateOperationCompleted = new SendOrPostCallback(this.OnSetRunningStateOperationCompleted);
      this.InvokeAsync("SetRunningState", new object[0], this.SetRunningStateOperationCompleted, userState);
    }

    private void OnSetRunningStateOperationCompleted(object arg)
    {
      if (this.SetRunningStateCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.SetRunningStateCompleted((object) this, new SetRunningStateCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/SetMaintenanceState", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public string SetMaintenanceState()
    {
      return (string) this.Invoke("SetMaintenanceState", new object[0])[0];
    }

    public void SetMaintenanceStateAsync()
    {
      this.SetMaintenanceStateAsync((object) null);
    }

    public void SetMaintenanceStateAsync(object userState)
    {
      if (this.SetMaintenanceStateOperationCompleted == null)
        this.SetMaintenanceStateOperationCompleted = new SendOrPostCallback(this.OnSetMaintenanceStateOperationCompleted);
      this.InvokeAsync("SetMaintenanceState", new object[0], this.SetMaintenanceStateOperationCompleted, userState);
    }

    private void OnSetMaintenanceStateOperationCompleted(object arg)
    {
      if (this.SetMaintenanceStateCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.SetMaintenanceStateCompleted((object) this, new SetMaintenanceStateCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetServerTime", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public DateTime GetServerTime()
    {
      return (DateTime) this.Invoke("GetServerTime", new object[0])[0];
    }

    public void GetServerTimeAsync()
    {
      this.GetServerTimeAsync((object) null);
    }

    public void GetServerTimeAsync(object userState)
    {
      if (this.GetServerTimeOperationCompleted == null)
        this.GetServerTimeOperationCompleted = new SendOrPostCallback(this.OnGetServerTimeOperationCompleted);
      this.InvokeAsync("GetServerTime", new object[0], this.GetServerTimeOperationCompleted, userState);
    }

    private void OnGetServerTimeOperationCompleted(object arg)
    {
      if (this.GetServerTimeCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetServerTimeCompleted((object) this, new GetServerTimeCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/CheckWorkStatus", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string CheckWorkStatus()
    {
      return (string) this.Invoke("CheckWorkStatus", new object[0])[0];
    }

    public void CheckWorkStatusAsync()
    {
      this.CheckWorkStatusAsync((object) null);
    }

    public void CheckWorkStatusAsync(object userState)
    {
      if (this.CheckWorkStatusOperationCompleted == null)
        this.CheckWorkStatusOperationCompleted = new SendOrPostCallback(this.OnCheckWorkStatusOperationCompleted);
      this.InvokeAsync("CheckWorkStatus", new object[0], this.CheckWorkStatusOperationCompleted, userState);
    }

    private void OnCheckWorkStatusOperationCompleted(object arg)
    {
      if (this.CheckWorkStatusCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.CheckWorkStatusCompleted((object) this, new CheckWorkStatusCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/AddArea", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string AddArea(string areaGUID, string areaName)
    {
      return (string) this.Invoke("AddArea", new object[2]
      {
        (object) areaGUID,
        (object) areaName
      })[0];
    }

    public void AddAreaAsync(string areaGUID, string areaName)
    {
      this.AddAreaAsync(areaGUID, areaName, (object) null);
    }

    public void AddAreaAsync(string areaGUID, string areaName, object userState)
    {
      if (this.AddAreaOperationCompleted == null)
        this.AddAreaOperationCompleted = new SendOrPostCallback(this.OnAddAreaOperationCompleted);
      this.InvokeAsync("AddArea", new object[2]
      {
        (object) areaGUID,
        (object) areaName
      }, this.AddAreaOperationCompleted, userState);
    }

    private void OnAddAreaOperationCompleted(object arg)
    {
      if (this.AddAreaCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.AddAreaCompleted((object) this, new AddAreaCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/AddChildArea", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string AddChildArea(string areaGUID, string areaName, string parentGUID)
    {
      return (string) this.Invoke("AddChildArea", new object[3]
      {
        (object) areaGUID,
        (object) areaName,
        (object) parentGUID
      })[0];
    }

    public void AddChildAreaAsync(string areaGUID, string areaName, string parentGUID)
    {
      this.AddChildAreaAsync(areaGUID, areaName, parentGUID, (object) null);
    }

    public void AddChildAreaAsync(string areaGUID, string areaName, string parentGUID, object userState)
    {
      if (this.AddChildAreaOperationCompleted == null)
        this.AddChildAreaOperationCompleted = new SendOrPostCallback(this.OnAddChildAreaOperationCompleted);
      this.InvokeAsync("AddChildArea", new object[3]
      {
        (object) areaGUID,
        (object) areaName,
        (object) parentGUID
      }, this.AddChildAreaOperationCompleted, userState);
    }

    private void OnAddChildAreaOperationCompleted(object arg)
    {
      if (this.AddChildAreaCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.AddChildAreaCompleted((object) this, new AddChildAreaCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/UpdateArea", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string UpdateArea(string areaGUID, string areaName)
    {
      return (string) this.Invoke("UpdateArea", new object[2]
      {
        (object) areaGUID,
        (object) areaName
      })[0];
    }

    public void UpdateAreaAsync(string areaGUID, string areaName)
    {
      this.UpdateAreaAsync(areaGUID, areaName, (object) null);
    }

    public void UpdateAreaAsync(string areaGUID, string areaName, object userState)
    {
      if (this.UpdateAreaOperationCompleted == null)
        this.UpdateAreaOperationCompleted = new SendOrPostCallback(this.OnUpdateAreaOperationCompleted);
      this.InvokeAsync("UpdateArea", new object[2]
      {
        (object) areaGUID,
        (object) areaName
      }, this.UpdateAreaOperationCompleted, userState);
    }

    private void OnUpdateAreaOperationCompleted(object arg)
    {
      if (this.UpdateAreaCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.UpdateAreaCompleted((object) this, new UpdateAreaCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/DelArea", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string DelArea(string areaGUID)
    {
      return (string) this.Invoke("DelArea", new object[1]
      {
        (object) areaGUID
      })[0];
    }

    public void DelAreaAsync(string areaGUID)
    {
      this.DelAreaAsync(areaGUID, (object) null);
    }

    public void DelAreaAsync(string areaGUID, object userState)
    {
      if (this.DelAreaOperationCompleted == null)
        this.DelAreaOperationCompleted = new SendOrPostCallback(this.OnDelAreaOperationCompleted);
      this.InvokeAsync("DelArea", new object[1]
      {
        (object) areaGUID
      }, this.DelAreaOperationCompleted, userState);
    }

    private void OnDelAreaOperationCompleted(object arg)
    {
      if (this.DelAreaCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.DelAreaCompleted((object) this, new DelAreaCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetAreaList", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public DataSet GetAreaList()
    {
      return (DataSet) this.Invoke("GetAreaList", new object[0])[0];
    }

    public void GetAreaListAsync()
    {
      this.GetAreaListAsync((object) null);
    }

    public void GetAreaListAsync(object userState)
    {
      if (this.GetAreaListOperationCompleted == null)
        this.GetAreaListOperationCompleted = new SendOrPostCallback(this.OnGetAreaListOperationCompleted);
      this.InvokeAsync("GetAreaList", new object[0], this.GetAreaListOperationCompleted, userState);
    }

    private void OnGetAreaListOperationCompleted(object arg)
    {
      if (this.GetAreaListCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetAreaListCompleted((object) this, new GetAreaListCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetAreaByFiter", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public DataSet GetAreaByFiter(string filter)
    {
      return (DataSet) this.Invoke("GetAreaByFiter", new object[1]
      {
        (object) filter
      })[0];
    }

    public void GetAreaByFiterAsync(string filter)
    {
      this.GetAreaByFiterAsync(filter, (object) null);
    }

    public void GetAreaByFiterAsync(string filter, object userState)
    {
      if (this.GetAreaByFiterOperationCompleted == null)
        this.GetAreaByFiterOperationCompleted = new SendOrPostCallback(this.OnGetAreaByFiterOperationCompleted);
      this.InvokeAsync("GetAreaByFiter", new object[1]
      {
        (object) filter
      }, this.GetAreaByFiterOperationCompleted, userState);
    }

    private void OnGetAreaByFiterOperationCompleted(object arg)
    {
      if (this.GetAreaByFiterCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetAreaByFiterCompleted((object) this, new GetAreaByFiterCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/AddCustomer", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public string AddCustomer(string cstGUID, string areaGUID, string cstName)
    {
      return (string) this.Invoke("AddCustomer", new object[3]
      {
        (object) cstGUID,
        (object) areaGUID,
        (object) cstName
      })[0];
    }

    public void AddCustomerAsync(string cstGUID, string areaGUID, string cstName)
    {
      this.AddCustomerAsync(cstGUID, areaGUID, cstName, (object) null);
    }

    public void AddCustomerAsync(string cstGUID, string areaGUID, string cstName, object userState)
    {
      if (this.AddCustomerOperationCompleted == null)
        this.AddCustomerOperationCompleted = new SendOrPostCallback(this.OnAddCustomerOperationCompleted);
      this.InvokeAsync("AddCustomer", new object[3]
      {
        (object) cstGUID,
        (object) areaGUID,
        (object) cstName
      }, this.AddCustomerOperationCompleted, userState);
    }

    private void OnAddCustomerOperationCompleted(object arg)
    {
      if (this.AddCustomerCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.AddCustomerCompleted((object) this, new AddCustomerCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/UpdateCustomer", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public string UpdateCustomer(string cstGUID, string cstName)
    {
      return (string) this.Invoke("UpdateCustomer", new object[2]
      {
        (object) cstGUID,
        (object) cstName
      })[0];
    }

    public void UpdateCustomerAsync(string cstGUID, string cstName)
    {
      this.UpdateCustomerAsync(cstGUID, cstName, (object) null);
    }

    public void UpdateCustomerAsync(string cstGUID, string cstName, object userState)
    {
      if (this.UpdateCustomerOperationCompleted == null)
        this.UpdateCustomerOperationCompleted = new SendOrPostCallback(this.OnUpdateCustomerOperationCompleted);
      this.InvokeAsync("UpdateCustomer", new object[2]
      {
        (object) cstGUID,
        (object) cstName
      }, this.UpdateCustomerOperationCompleted, userState);
    }

    private void OnUpdateCustomerOperationCompleted(object arg)
    {
      if (this.UpdateCustomerCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.UpdateCustomerCompleted((object) this, new UpdateCustomerCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/DelCustomer", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string DelCustomer(string cstGUID)
    {
      return (string) this.Invoke("DelCustomer", new object[1]
      {
        (object) cstGUID
      })[0];
    }

    public void DelCustomerAsync(string cstGUID)
    {
      this.DelCustomerAsync(cstGUID, (object) null);
    }

    public void DelCustomerAsync(string cstGUID, object userState)
    {
      if (this.DelCustomerOperationCompleted == null)
        this.DelCustomerOperationCompleted = new SendOrPostCallback(this.OnDelCustomerOperationCompleted);
      this.InvokeAsync("DelCustomer", new object[1]
      {
        (object) cstGUID
      }, this.DelCustomerOperationCompleted, userState);
    }

    private void OnDelCustomerOperationCompleted(object arg)
    {
      if (this.DelCustomerCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.DelCustomerCompleted((object) this, new DelCustomerCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetCustomerList", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public DataSet GetCustomerList(string areaGUID)
    {
      return (DataSet) this.Invoke("GetCustomerList", new object[1]
      {
        (object) areaGUID
      })[0];
    }

    public void GetCustomerListAsync(string areaGUID)
    {
      this.GetCustomerListAsync(areaGUID, (object) null);
    }

    public void GetCustomerListAsync(string areaGUID, object userState)
    {
      if (this.GetCustomerListOperationCompleted == null)
        this.GetCustomerListOperationCompleted = new SendOrPostCallback(this.OnGetCustomerListOperationCompleted);
      this.InvokeAsync("GetCustomerList", new object[1]
      {
        (object) areaGUID
      }, this.GetCustomerListOperationCompleted, userState);
    }

    private void OnGetCustomerListOperationCompleted(object arg)
    {
      if (this.GetCustomerListCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetCustomerListCompleted((object) this, new GetCustomerListCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/AddWorkSpace", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string AddWorkSpace(WorkSpaceObj obj)
    {
      return (string) this.Invoke("AddWorkSpace", new object[1]{ (object) obj })[0];
    }

    public void AddWorkSpaceAsync(WorkSpaceObj obj)
    {
      this.AddWorkSpaceAsync(obj, (object) null);
    }

    public void AddWorkSpaceAsync(WorkSpaceObj obj, object userState)
    {
      if (this.AddWorkSpaceOperationCompleted == null)
        this.AddWorkSpaceOperationCompleted = new SendOrPostCallback(this.OnAddWorkSpaceOperationCompleted);
      this.InvokeAsync("AddWorkSpace", new object[1]{ (object) obj }, this.AddWorkSpaceOperationCompleted, userState);
    }

    private void OnAddWorkSpaceOperationCompleted(object arg)
    {
      if (this.AddWorkSpaceCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.AddWorkSpaceCompleted((object) this, new AddWorkSpaceCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/UpdateMerger", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string UpdateMerger(string vssPath, string UserName, string Operation)
    {
      return (string) this.Invoke("UpdateMerger", new object[3]
      {
        (object) vssPath,
        (object) UserName,
        (object) Operation
      })[0];
    }

    public void UpdateMergerAsync(string vssPath, string UserName, string Operation)
    {
      this.UpdateMergerAsync(vssPath, UserName, Operation, (object) null);
    }

    public void UpdateMergerAsync(string vssPath, string UserName, string Operation, object userState)
    {
      if (this.UpdateMergerOperationCompleted == null)
        this.UpdateMergerOperationCompleted = new SendOrPostCallback(this.OnUpdateMergerOperationCompleted);
      this.InvokeAsync("UpdateMerger", new object[3]
      {
        (object) vssPath,
        (object) UserName,
        (object) Operation
      }, this.UpdateMergerOperationCompleted, userState);
    }

    private void OnUpdateMergerOperationCompleted(object arg)
    {
      if (this.UpdateMergerCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.UpdateMergerCompleted((object) this, new UpdateMergerCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/UpdateWorkSpace", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public string UpdateWorkSpace(WorkSpaceObj obj)
    {
      return (string) this.Invoke("UpdateWorkSpace", new object[1]{ (object) obj })[0];
    }

    public void UpdateWorkSpaceAsync(WorkSpaceObj obj)
    {
      this.UpdateWorkSpaceAsync(obj, (object) null);
    }

    public void UpdateWorkSpaceAsync(WorkSpaceObj obj, object userState)
    {
      if (this.UpdateWorkSpaceOperationCompleted == null)
        this.UpdateWorkSpaceOperationCompleted = new SendOrPostCallback(this.OnUpdateWorkSpaceOperationCompleted);
      this.InvokeAsync("UpdateWorkSpace", new object[1]{ (object) obj }, this.UpdateWorkSpaceOperationCompleted, userState);
    }

    private void OnUpdateWorkSpaceOperationCompleted(object arg)
    {
      if (this.UpdateWorkSpaceCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.UpdateWorkSpaceCompleted((object) this, new UpdateWorkSpaceCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/DelWorkSpace", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public string DelWorkSpace(string workSpaceGUID)
    {
      return (string) this.Invoke("DelWorkSpace", new object[1]
      {
        (object) workSpaceGUID
      })[0];
    }

    public void DelWorkSpaceAsync(string workSpaceGUID)
    {
      this.DelWorkSpaceAsync(workSpaceGUID, (object) null);
    }

    public void DelWorkSpaceAsync(string workSpaceGUID, object userState)
    {
      if (this.DelWorkSpaceOperationCompleted == null)
        this.DelWorkSpaceOperationCompleted = new SendOrPostCallback(this.OnDelWorkSpaceOperationCompleted);
      this.InvokeAsync("DelWorkSpace", new object[1]
      {
        (object) workSpaceGUID
      }, this.DelWorkSpaceOperationCompleted, userState);
    }

    private void OnDelWorkSpaceOperationCompleted(object arg)
    {
      if (this.DelWorkSpaceCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.DelWorkSpaceCompleted((object) this, new DelWorkSpaceCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetWorkSpaceList", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public DataSet GetWorkSpaceList(string cstGUID)
    {
      return (DataSet) this.Invoke("GetWorkSpaceList", new object[1]
      {
        (object) cstGUID
      })[0];
    }

    public void GetWorkSpaceListAsync(string cstGUID)
    {
      this.GetWorkSpaceListAsync(cstGUID, (object) null);
    }

    public void GetWorkSpaceListAsync(string cstGUID, object userState)
    {
      if (this.GetWorkSpaceListOperationCompleted == null)
        this.GetWorkSpaceListOperationCompleted = new SendOrPostCallback(this.OnGetWorkSpaceListOperationCompleted);
      this.InvokeAsync("GetWorkSpaceList", new object[1]
      {
        (object) cstGUID
      }, this.GetWorkSpaceListOperationCompleted, userState);
    }

    private void OnGetWorkSpaceListOperationCompleted(object arg)
    {
      if (this.GetWorkSpaceListCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetWorkSpaceListCompleted((object) this, new GetWorkSpaceListCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetWorkSpaceByVSSPath", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public DataSet GetWorkSpaceByVSSPath(string vssPath)
    {
      return (DataSet) this.Invoke("GetWorkSpaceByVSSPath", new object[1]
      {
        (object) vssPath
      })[0];
    }

    public void GetWorkSpaceByVSSPathAsync(string vssPath)
    {
      this.GetWorkSpaceByVSSPathAsync(vssPath, (object) null);
    }

    public void GetWorkSpaceByVSSPathAsync(string vssPath, object userState)
    {
      if (this.GetWorkSpaceByVSSPathOperationCompleted == null)
        this.GetWorkSpaceByVSSPathOperationCompleted = new SendOrPostCallback(this.OnGetWorkSpaceByVSSPathOperationCompleted);
      this.InvokeAsync("GetWorkSpaceByVSSPath", new object[1]
      {
        (object) vssPath
      }, this.GetWorkSpaceByVSSPathOperationCompleted, userState);
    }

    private void OnGetWorkSpaceByVSSPathOperationCompleted(object arg)
    {
      if (this.GetWorkSpaceByVSSPathCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetWorkSpaceByVSSPathCompleted((object) this, new GetWorkSpaceByVSSPathCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetWorkSpaceByFilter", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public DataSet GetWorkSpaceByFilter(string workSpaceGUID, string UserName)
    {
      return (DataSet) this.Invoke("GetWorkSpaceByFilter", new object[2]
      {
        (object) workSpaceGUID,
        (object) UserName
      })[0];
    }

    public void GetWorkSpaceByFilterAsync(string workSpaceGUID, string UserName)
    {
      this.GetWorkSpaceByFilterAsync(workSpaceGUID, UserName, (object) null);
    }

    public void GetWorkSpaceByFilterAsync(string workSpaceGUID, string UserName, object userState)
    {
      if (this.GetWorkSpaceByFilterOperationCompleted == null)
        this.GetWorkSpaceByFilterOperationCompleted = new SendOrPostCallback(this.OnGetWorkSpaceByFilterOperationCompleted);
      this.InvokeAsync("GetWorkSpaceByFilter", new object[2]
      {
        (object) workSpaceGUID,
        (object) UserName
      }, this.GetWorkSpaceByFilterOperationCompleted, userState);
    }

    private void OnGetWorkSpaceByFilterOperationCompleted(object arg)
    {
      if (this.GetWorkSpaceByFilterCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetWorkSpaceByFilterCompleted((object) this, new GetWorkSpaceByFilterCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetWorkSpace", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public DataSet GetWorkSpace(string workSpaceGUID)
    {
      return (DataSet) this.Invoke("GetWorkSpace", new object[1]
      {
        (object) workSpaceGUID
      })[0];
    }

    public void GetWorkSpaceAsync(string workSpaceGUID)
    {
      this.GetWorkSpaceAsync(workSpaceGUID, (object) null);
    }

    public void GetWorkSpaceAsync(string workSpaceGUID, object userState)
    {
      if (this.GetWorkSpaceOperationCompleted == null)
        this.GetWorkSpaceOperationCompleted = new SendOrPostCallback(this.OnGetWorkSpaceOperationCompleted);
      this.InvokeAsync("GetWorkSpace", new object[1]
      {
        (object) workSpaceGUID
      }, this.GetWorkSpaceOperationCompleted, userState);
    }

    private void OnGetWorkSpaceOperationCompleted(object arg)
    {
      if (this.GetWorkSpaceCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetWorkSpaceCompleted((object) this, new GetWorkSpaceCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/SetCurrentWorkSpace", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string SetCurrentWorkSpace(string workSpaceGUID, string vssPath)
    {
      return (string) this.Invoke("SetCurrentWorkSpace", new object[2]
      {
        (object) workSpaceGUID,
        (object) vssPath
      })[0];
    }

    public void SetCurrentWorkSpaceAsync(string workSpaceGUID, string vssPath)
    {
      this.SetCurrentWorkSpaceAsync(workSpaceGUID, vssPath, (object) null);
    }

    public void SetCurrentWorkSpaceAsync(string workSpaceGUID, string vssPath, object userState)
    {
      if (this.SetCurrentWorkSpaceOperationCompleted == null)
        this.SetCurrentWorkSpaceOperationCompleted = new SendOrPostCallback(this.OnSetCurrentWorkSpaceOperationCompleted);
      this.InvokeAsync("SetCurrentWorkSpace", new object[2]
      {
        (object) workSpaceGUID,
        (object) vssPath
      }, this.SetCurrentWorkSpaceOperationCompleted, userState);
    }

    private void OnSetCurrentWorkSpaceOperationCompleted(object arg)
    {
      if (this.SetCurrentWorkSpaceCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.SetCurrentWorkSpaceCompleted((object) this, new SetCurrentWorkSpaceCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetDevelopAreaList", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public DataSet GetDevelopAreaList()
    {
      return (DataSet) this.Invoke("GetDevelopAreaList", new object[0])[0];
    }

    public void GetDevelopAreaListAsync()
    {
      this.GetDevelopAreaListAsync((object) null);
    }

    public void GetDevelopAreaListAsync(object userState)
    {
      if (this.GetDevelopAreaListOperationCompleted == null)
        this.GetDevelopAreaListOperationCompleted = new SendOrPostCallback(this.OnGetDevelopAreaListOperationCompleted);
      this.InvokeAsync("GetDevelopAreaList", new object[0], this.GetDevelopAreaListOperationCompleted, userState);
    }

    private void OnGetDevelopAreaListOperationCompleted(object arg)
    {
      if (this.GetDevelopAreaListCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetDevelopAreaListCompleted((object) this, new GetDevelopAreaListCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetTasksList", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public DataSet GetTasksList(string cstName, string zt, string xqTitle, string xqID)
    {
      return (DataSet) this.Invoke("GetTasksList", new object[4]
      {
        (object) cstName,
        (object) zt,
        (object) xqTitle,
        (object) xqID
      })[0];
    }

    public void GetTasksListAsync(string cstName, string zt, string xqTitle, string xqID)
    {
      this.GetTasksListAsync(cstName, zt, xqTitle, xqID, (object) null);
    }

    public void GetTasksListAsync(string cstName, string zt, string xqTitle, string xqID, object userState)
    {
      if (this.GetTasksListOperationCompleted == null)
        this.GetTasksListOperationCompleted = new SendOrPostCallback(this.OnGetTasksListOperationCompleted);
      this.InvokeAsync("GetTasksList", new object[4]
      {
        (object) cstName,
        (object) zt,
        (object) xqTitle,
        (object) xqID
      }, this.GetTasksListOperationCompleted, userState);
    }

    private void OnGetTasksListOperationCompleted(object arg)
    {
      if (this.GetTasksListCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetTasksListCompleted((object) this, new GetTasksListCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetAttmentList", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public DataSet GetAttmentList(string XQGUID)
    {
      return (DataSet) this.Invoke("GetAttmentList", new object[1]
      {
        (object) XQGUID
      })[0];
    }

    public void GetAttmentListAsync(string XQGUID)
    {
      this.GetAttmentListAsync(XQGUID, (object) null);
    }

    public void GetAttmentListAsync(string XQGUID, object userState)
    {
      if (this.GetAttmentListOperationCompleted == null)
        this.GetAttmentListOperationCompleted = new SendOrPostCallback(this.OnGetAttmentListOperationCompleted);
      this.InvokeAsync("GetAttmentList", new object[1]
      {
        (object) XQGUID
      }, this.GetAttmentListOperationCompleted, userState);
    }

    private void OnGetAttmentListOperationCompleted(object arg)
    {
      if (this.GetAttmentListCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetAttmentListCompleted((object) this, new GetAttmentListCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetTaskGUID", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string GetTaskGUID(string XqCode)
    {
      return (string) this.Invoke("GetTaskGUID", new object[1]
      {
        (object) XqCode
      })[0];
    }

    public void GetTaskGUIDAsync(string XqCode)
    {
      this.GetTaskGUIDAsync(XqCode, (object) null);
    }

    public void GetTaskGUIDAsync(string XqCode, object userState)
    {
      if (this.GetTaskGUIDOperationCompleted == null)
        this.GetTaskGUIDOperationCompleted = new SendOrPostCallback(this.OnGetTaskGUIDOperationCompleted);
      this.InvokeAsync("GetTaskGUID", new object[1]
      {
        (object) XqCode
      }, this.GetTaskGUIDOperationCompleted, userState);
    }

    private void OnGetTaskGUIDOperationCompleted(object arg)
    {
      if (this.GetTaskGUIDCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetTaskGUIDCompleted((object) this, new GetTaskGUIDCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/AddPackToTask", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string AddPackToTask(string packGUID, string TaskCode)
    {
      return (string) this.Invoke("AddPackToTask", new object[2]
      {
        (object) packGUID,
        (object) TaskCode
      })[0];
    }

    public void AddPackToTaskAsync(string packGUID, string TaskCode)
    {
      this.AddPackToTaskAsync(packGUID, TaskCode, (object) null);
    }

    public void AddPackToTaskAsync(string packGUID, string TaskCode, object userState)
    {
      if (this.AddPackToTaskOperationCompleted == null)
        this.AddPackToTaskOperationCompleted = new SendOrPostCallback(this.OnAddPackToTaskOperationCompleted);
      this.InvokeAsync("AddPackToTask", new object[2]
      {
        (object) packGUID,
        (object) TaskCode
      }, this.AddPackToTaskOperationCompleted, userState);
    }

    private void OnAddPackToTaskOperationCompleted(object arg)
    {
      if (this.AddPackToTaskCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.AddPackToTaskCompleted((object) this, new AddPackToTaskCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/AddUpdatePack", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string AddUpdatePack(UpdatePackObj obj)
    {
      return (string) this.Invoke("AddUpdatePack", new object[1]{ (object) obj })[0];
    }

    public void AddUpdatePackAsync(UpdatePackObj obj)
    {
      this.AddUpdatePackAsync(obj, (object) null);
    }

    public void AddUpdatePackAsync(UpdatePackObj obj, object userState)
    {
      if (this.AddUpdatePackOperationCompleted == null)
        this.AddUpdatePackOperationCompleted = new SendOrPostCallback(this.OnAddUpdatePackOperationCompleted);
      this.InvokeAsync("AddUpdatePack", new object[1]{ (object) obj }, this.AddUpdatePackOperationCompleted, userState);
    }

    private void OnAddUpdatePackOperationCompleted(object arg)
    {
      if (this.AddUpdatePackCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.AddUpdatePackCompleted((object) this, new AddUpdatePackCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/UpdatePackageInfo", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public string UpdatePackageInfo(UpdatePackObj obj)
    {
      return (string) this.Invoke("UpdatePackageInfo", new object[1]{ (object) obj })[0];
    }

    public void UpdatePackageInfoAsync(UpdatePackObj obj)
    {
      this.UpdatePackageInfoAsync(obj, (object) null);
    }

    public void UpdatePackageInfoAsync(UpdatePackObj obj, object userState)
    {
      if (this.UpdatePackageInfoOperationCompleted == null)
        this.UpdatePackageInfoOperationCompleted = new SendOrPostCallback(this.OnUpdatePackageInfoOperationCompleted);
      this.InvokeAsync("UpdatePackageInfo", new object[1]{ (object) obj }, this.UpdatePackageInfoOperationCompleted, userState);
    }

    private void OnUpdatePackageInfoOperationCompleted(object arg)
    {
      if (this.UpdatePackageInfoCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.UpdatePackageInfoCompleted((object) this, new UpdatePackageInfoCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetPackXqInfoXML", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public string GetPackXqInfoXML(string xqID)
    {
      return (string) this.Invoke("GetPackXqInfoXML", new object[1]{ (object) xqID })[0];
    }

    public void GetPackXqInfoXMLAsync(string xqID)
    {
      this.GetPackXqInfoXMLAsync(xqID, (object) null);
    }

    public void GetPackXqInfoXMLAsync(string xqID, object userState)
    {
      if (this.GetPackXqInfoXMLOperationCompleted == null)
        this.GetPackXqInfoXMLOperationCompleted = new SendOrPostCallback(this.OnGetPackXqInfoXMLOperationCompleted);
      this.InvokeAsync("GetPackXqInfoXML", new object[1]{ (object) xqID }, this.GetPackXqInfoXMLOperationCompleted, userState);
    }

    private void OnGetPackXqInfoXMLOperationCompleted(object arg)
    {
      if (this.GetPackXqInfoXMLCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetPackXqInfoXMLCompleted((object) this, new GetPackXqInfoXMLCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetUnUpdateUpdatePackList", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    [SoapHeader("AuthHeaderValue")]
    public DataSet GetUnUpdateUpdatePackList(string workSpaceGUID)
    {
      return (DataSet) this.Invoke("GetUnUpdateUpdatePackList", new object[1]
      {
        (object) workSpaceGUID
      })[0];
    }

    public void GetUnUpdateUpdatePackListAsync(string workSpaceGUID)
    {
      this.GetUnUpdateUpdatePackListAsync(workSpaceGUID, (object) null);
    }

    public void GetUnUpdateUpdatePackListAsync(string workSpaceGUID, object userState)
    {
      if (this.GetUnUpdateUpdatePackListOperationCompleted == null)
        this.GetUnUpdateUpdatePackListOperationCompleted = new SendOrPostCallback(this.OnGetUnUpdateUpdatePackListOperationCompleted);
      this.InvokeAsync("GetUnUpdateUpdatePackList", new object[1]
      {
        (object) workSpaceGUID
      }, this.GetUnUpdateUpdatePackListOperationCompleted, userState);
    }

    private void OnGetUnUpdateUpdatePackListOperationCompleted(object arg)
    {
      if (this.GetUnUpdateUpdatePackListCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetUnUpdateUpdatePackListCompleted((object) this, new GetUnUpdateUpdatePackListCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetUpdatePackPreVersion", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public DataSet GetUpdatePackPreVersion(string workSpaceGUID, string filter)
    {
      return (DataSet) this.Invoke("GetUpdatePackPreVersion", new object[2]
      {
        (object) workSpaceGUID,
        (object) filter
      })[0];
    }

    public void GetUpdatePackPreVersionAsync(string workSpaceGUID, string filter)
    {
      this.GetUpdatePackPreVersionAsync(workSpaceGUID, filter, (object) null);
    }

    public void GetUpdatePackPreVersionAsync(string workSpaceGUID, string filter, object userState)
    {
      if (this.GetUpdatePackPreVersionOperationCompleted == null)
        this.GetUpdatePackPreVersionOperationCompleted = new SendOrPostCallback(this.OnGetUpdatePackPreVersionOperationCompleted);
      this.InvokeAsync("GetUpdatePackPreVersion", new object[2]
      {
        (object) workSpaceGUID,
        (object) filter
      }, this.GetUpdatePackPreVersionOperationCompleted, userState);
    }

    private void OnGetUpdatePackPreVersionOperationCompleted(object arg)
    {
      if (this.GetUpdatePackPreVersionCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetUpdatePackPreVersionCompleted((object) this, new GetUpdatePackPreVersionCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    [SoapHeader("AuthHeaderValue")]
    [SoapDocumentMethod("http://www.mysoft.com.cn/erp3/updatepack/GetUpdatePackPreVersionByXqGUID", ParameterStyle = SoapParameterStyle.Wrapped, RequestNamespace = "http://www.mysoft.com.cn/erp3/updatepack", ResponseNamespace = "http://www.mysoft.com.cn/erp3/updatepack", Use = SoapBindingUse.Literal)]
    public DataSet GetUpdatePackPreVersionByXqGUID(string workSpaceGUID, string filter)
    {
      return (DataSet) this.Invoke("GetUpdatePackPreVersionByXqGUID", new object[2]
      {
        (object) workSpaceGUID,
        (object) filter
      })[0];
    }

    public void GetUpdatePackPreVersionByXqGUIDAsync(string workSpaceGUID, string filter)
    {
      this.GetUpdatePackPreVersionByXqGUIDAsync(workSpaceGUID, filter, (object) null);
    }

    public void GetUpdatePackPreVersionByXqGUIDAsync(string workSpaceGUID, string filter, object userState)
    {
      if (this.GetUpdatePackPreVersionByXqGUIDOperationCompleted == null)
        this.GetUpdatePackPreVersionByXqGUIDOperationCompleted = new SendOrPostCallback(this.OnGetUpdatePackPreVersionByXqGUIDOperationCompleted);
      this.InvokeAsync("GetUpdatePackPreVersionByXqGUID", new object[2]
      {
        (object) workSpaceGUID,
        (object) filter
      }, this.GetUpdatePackPreVersionByXqGUIDOperationCompleted, userState);
    }

    private void OnGetUpdatePackPreVersionByXqGUIDOperationCompleted(object arg)
    {
      if (this.GetUpdatePackPreVersionByXqGUIDCompleted == null)
        return;
      InvokeCompletedEventArgs completedEventArgs = (InvokeCompletedEventArgs) arg;
      this.GetUpdatePackPreVersionByXqGUIDCompleted((object) this, new GetUpdatePackPreVersionByXqGUIDCompletedEventArgs(completedEventArgs.Results, completedEventArgs.Error, completedEventArgs.Cancelled, completedEventArgs.UserState));
    }

    public new void CancelAsync(object userState)
    {
      base.CancelAsync(userState);
    }

    private bool IsLocalFileSystemWebService(string url)
    {
      if (url == null || url == string.Empty)
        return false;
      Uri uri = new Uri(url);
      return uri.Port >= 1024 && string.Compare(uri.Host, "localHost", StringComparison.OrdinalIgnoreCase) == 0;
    }
  }
}
